package service

import (
	"context"
	__ "mt-server/basic/proto"
	"mt-server/handler/model"
)

// 商家预约管理功能
func (s *Server) MerchantAppointment(_ context.Context, in *__.MerchantAppointmentReq) (*__.MerchantAppointmentResp, error) {
	var ma model.Appointment

	ma = model.Appointment{
		Id:     ma.Id,
		Status: ma.Status,
	}

	err := ma.MerchantAppointmentC()
	if err != nil {
		return &__.MerchantAppointmentResp{
			Msg:  "交易失败",
			Code: 200,
		}, nil
	}

	return &__.MerchantAppointmentResp{
		Msg:  "完成交易",
		Code: 200,
	}, nil
}
